package fangzhiyi_day0325.Test;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/25 18:41
 * @description
 */
public class B {
    public static void main(String[] args) {
        int x = 10;
        isPalindrome(x);
    }

    public static boolean isPalindrome(int x) {
        int huiwen = 0;
        while (x != 0) {
            int temp = x % 10;
            huiwen = huiwen * 10 + temp;
            x = x / 10;
        }
        if (huiwen != x) {
            return false;
        } else {
            return true;
        }

    }
}
